import { defineStore } from "pinia";
import { reqWorthData } from "../api/deserve";

let useWorthStore = defineStore("worth", {
  state() {
    return {
      swiperData: [],
 
    };
  },

  actions: {
    // 获取轮播图数据
    async getSwiperData() {
      try {
        let res: any = await reqWorthData();
        this.swiperData = res.navList;
      } catch (error) {

      }

    }


  },
  getters: {},
});

export default useWorthStore;
